
public class Data {
	private int year;
	private int month;
	private int day;
	public Data(int year,int month,int day){
		this.setYear(year);
		this.setMonth(month);
		this.setDay(day);
		
	}
	public String toString(){
		return getYear()+"-"+getMonth()+"-"+getDay();
	}
	public int getYear(){
		return year;
	}
	public void setYear(int y){
		year=y;
	}
	public int getMonth(){
		return month;	
	}
	public void setMonth(int m){
		month=m;
	}
	public int getDay(){
		return day;
	}
	public void setDay(int d){
		day=d;
	}

}
